package com.atguigu.yygh.order.pojo;

import org.springframework.beans.factory.InitializingBean;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Component;

/**
 * @Author luoyin
 * @Date 19:37 2022/10/10
 **/

@Component
public class WeiPay implements InitializingBean {

    @Value("${weixin.pay.appid}")
    private String appid;
    @Value("${weixin.pay.partner}")
    private String partner;
    @Value("${weixin.pay.partnerkey}")
    private String partnerkey;

    public static String APPID;
    public static String PARTENER;
    public static String PARTNERKAY;

    @Override
    public void afterPropertiesSet() throws Exception {
        APPID = appid;
        PARTENER = partner;
        PARTNERKAY = partnerkey;
    }
}